package com.example.mpjson.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonTypeId;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * @TableName mp_json
 */
@TableName(value ="mp_json",autoResultMap = true)
@Data
public class MpJson implements Serializable {
    /**
     * id
     */
    @TableId
    private Integer id;

    /**
     * 
     */
    @TableField(value = "role_id_list",typeHandler = JacksonTypeHandler.class,jdbcType = JdbcType.BLOB)
    @JsonTypeId
    private List<Long> roleIdList;

    /**
     * 
     */
    @TableField(value = "system_map",typeHandler = JacksonTypeHandler.class,jdbcType = JdbcType.BLOB)
    private SystemTest systemMap;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;





}